package com.txzt.gaea.task;

import com.txzt.gaea.upgrade.project.service.IProjectProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledService {
    @Autowired
    private IProjectProgressService iProjectProgressService;

    @Scheduled(cron = "0 0 1 * * * ")
    public void scheduled(){
//        System.out.println("=====>>>>>使用cron "+System.currentTimeMillis());
        iProjectProgressService.changeProgressStatus();
//        log.info("=====>>>>>使用cron  {}",System.currentTimeMillis());
    }
}
